Shuffling Parities Codechef Solution